package cn.gok.demo.web;

import cn.gok.demo.base.web.BaseController;
import cn.gok.demo.entity.People;
import cn.gok.demo.service.PeopleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName PeopleController
 * @Description TODO
 * @Author HP
 * @Date 15:34 2022/7/26
 * @Version 1.0
 **/
@Controller
@RequestMapping("/people")
public class PeopleController {
    @Autowired
    PeopleService peopleService;

    @RequestMapping("/add")
    public int add(People people){
        return peopleService.save(people);
    }

}
